package mapper;

import com.sqsf.javabean.User;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface UserMapper {
    List<User> selectAll();
    List<User> selectUser_Role();

    @Delete({"<script>        delete from user where uid in\n" +
            "        <foreach collection=\"array\" item=\"uid\" open=\"(\" close=\")\" separator=\",\">\n" +
            "            #{uid}\n" +
            "        </foreach></script>"})
    int deleteByArray(int[] array);
}